import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/version_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class VersionEntity {
	late int code;
	late String msg;
	late VersionData data;

	VersionEntity();

	factory VersionEntity.fromJson(Map<String, dynamic> json) => $VersionEntityFromJson(json);

	Map<String, dynamic> toJson() => $VersionEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class VersionData {
	late String versioncode;
	late String versionCount;
	late String versionTime;
	late String versionUrl;

	VersionData();

	factory VersionData.fromJson(Map<String, dynamic> json) => $VersionDataFromJson(json);

	Map<String, dynamic> toJson() => $VersionDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}